package thread;

public class ThreadDemo04 {
    public static void main(String[] args) {
        new Thread(() -> {
            for (int i = 0; i < 101; i+=2) {
                System.out.println("偶数线程：" + i);
            }
        }).start();


        new Thread(() -> {
            for (int i = 1; i < 100; i+=2) {
                System.out.println("奇数线程：" + i);
            }
        }).start();
    }
}
